package com.example.usermanagement.config;


import java.util.concurrent.ThreadPoolExecutor;
import java.util.function.Function;

public class Cheshi {
    public static void main(String[] args) {
//       Function function= new Function<String,String>() {
//            @Override
//            public  String apply(String str) {
//                return str;
//            }
//        };
        //lambda表达式，等价于上面代码
        Function function=str->str;
        System.out.println(function.apply("1"));
    }
}



